package cn.yyj.springsecurity02.mapper;

import cn.yyj.springsecurity02.entity.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AccountMapper {
    @Select("select * from t_account where username = #{name}")
    List<Account> findAccountByUserName(String name);
}